package com.hf.eqstudent;

/**
 * 重写equals判断student是否相等
 * @author Lenovo-Healer
 */
public class TestDriver extends Student {

    public static void main(String[] args) {
    Student Sde1 = new Student(12);
        System.out.println(Sde1.getsNo());
    Student sde3 = Sde1;
        System.out.println(sde3.getsNo());
    System.out.println("Sde3-Sde1--------"+sde3.equals(Sde1));
    System.out.println("-------------------------------");
    Student Sde4 = new Student(121);
    Student Sde5 = new Student(131);
        System.out.println(Sde4.getsNo());
    System.out.println("Sde4-Sde5---------"+Sde4.equals(Sde5));
    System.out.println("---------------------------------");
    String str = new String();
    System.out.println("sde3-str---------"+sde3.equals(str));



    }


}
